//
//  NSObject+Scale.m
//  LogisticsCargoOwner
//
//  Created by 于鑫 on 2020/3/12.
//  Copyright © 2020 qiluys. All rights reserved.
//

#import "NSObject+Scale.h"


@implementation NSObject (Scale)
- (CGFloat)screenWidthScale {
    static float screenWidthScale = 0;
    if (screenWidthScale == 0) {
        float screenWidth = MIN([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
        screenWidthScale = roundf((screenWidth / 375.0) * 100) / 100;
    }
    return screenWidthScale;
}

@end
